import lrscp.lib.GlobalEventListener;
import lrscp.lib.KeyboardEvent;
import lrscp.lib.KeyboardEvent.GlobalKeyboardEventListener;
import lrscp.lib.Log;
import lrscp.lib.MouseEvent;
import lrscp.lib.MouseEvent.GlobalMouseEventListener;

public class GlobalEventTest implements GlobalKeyboardEventListener, GlobalMouseEventListener {

	static GlobalEventListener gl;

	public static void main(String[] args) throws Exception {
		GlobalEventTest inst = new GlobalEventTest();
		gl = new GlobalEventListener();
		gl.addKeyboardEventListener(inst);
		gl.addMouseEventListener(inst);
	}

	@Override
	public void onGlobalKeyEvent(KeyboardEvent event) {
		Log.i("Key Pressed: " + event.getTransitionState());
	}

	@Override
	public void onGlobalMouseEvent(MouseEvent event) {
		Log.i(event.getMouseX());
	}

}
